import { List } from "ionic-angular";

export class Cols{
    constructor(
        public controlType:string,
        public label:string='字段名称',
        public fieldName?:string,
        public comment:string='请输入',
        public dicHref?:string,
        public dicTitleColumn?:string,
        public dicValueColumn?:string,
        public dicContent?:string,
        public validateContent?:string,//"提示内容、验证未通过提醒信息"
        public validateType?:string,
        public minLength?:number,
        public length?:number,
        public scale?:number,
        public defaultValue?:any,
        public forignTable?:any,
        public forignField?:any,
        public unit?:string,
        public dataList?:List,
        public isShow?:any,
        public isList?:any,
        public isSearch?:any,
        public isStart?:any,
        public isEnd?:any,
        public rows?:any,
        public cols?:any,
        public value?:any,
        public spacePercent?:any
    ){
        if(this.controlType == "checkbox" || this.controlType == "radio" || this.controlType == "select"){
            this.comment = '请选择';
        }

    }
    
    

}